<div class="essa-modal">
    <div class="modal fade" if="visible" id="myModal">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header" ng-if="title">
            <button
              type="button"
              class="close"
              data-dismiss="modal"
              aria-label="Close"
            >
              <span aria-hidden="true">&times;</span>
            </button>
            <h4 class="modal-title">{title}</h4>
          </div>
          <div class="modal-body"><slot></slot></div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">{state.cancelText}</button>
            <button type="button" class="btn btn-primary" onClick="onOk()">{state.okText}</button>
          </div>
        </div>
      </div>
    </div>
  </div>
  